Skip to content

Open the report's environment from the home page's latest results - #118

Merged
StanFromIreland merged 2 commits into
python:mainfrom
cmaloney:fix-report-link-environment
Nov 22, 2026
Merged

StanFromIreland merged 2 commits into
python:mainfrom
cmaloney:fix-report-link-environment

Conversation

@cmaloney

Copy link
Copy Markdown

Clicking a row in the home page's "Latest Results" table always opened the changes page on the default environment, not the row's. Report links pass the environment name (env=Quad Core), but get_default_environment only accepted ids, so it skipped the value and fell back to the default.

This makes it accept either an id or a name, so the existing links (including ones already in RSS feeds) work as is. All other permalinks keep using ids.

Edge case: if one environment is named with a number equal to another environment's id, the first match in the environment list wins (previously the id always won).

🤖 Generated with Claude Code

cmaloney and others added 2 commits November 20, 2026 18:04
Report links pass the environment name (`env=<name>`), but the changes
view only accepted environment ids, so it ignored the value and fell
back to the default environment. Accept either an id or a name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@StanFromIreland
StanFromIreland merged commit 54ea327 into python:main Nov 22, 2026
8 checks passed
@StanFromIreland

Copy link
Copy Markdown
Member

Thank you!

@cmaloney
cmaloney deleted the fix-report-link-environment branch November 22, 2026 08:56
@cmaloney

Copy link
Copy Markdown
Author

Thanks for all the improvements so far, definitely getting easier/faster to get into things :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants